package com.ww.disruptor.handler;

import com.lmax.disruptor.EventHandler;
import com.ww.disruptor.event.OrderEvent;

public class OrderEventHandler implements EventHandler<OrderEvent> {
    @Override
    public void onEvent(OrderEvent event, long sequence, boolean endOfBatch) throws Exception {
        System.out.println("消费者：" + event.getValue());
    }
}
